00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef EXPORTMULTITERM33_HPP_
00016 #define EXPORTMULTITERM33_HPP_
00017
00018 #include <iostream>
00019 #include <string>
00020 #include <vector>
00021 #include <map>
00022
00023 #include "gridpack/parallel/communicator.hpp"
00024 #include "gridpack/component/data_collection.hpp"
00025 #include "gridpack/parser/dictionary.hpp"
00026 #include "gridpack/network/base_network.hpp"
00027 #include "gridpack/export/base_export.hpp"
00028
00029 namespace gridpack {
00030 namespace expnet {
00031
00032 template <class _network>
00033 class ExportMultiTerm33
00034 {
00035 public:
00036
00037
00038
00039
00040 explicit ExportMultiTerm33(boost::shared_ptr<_network> network) :
00041 p_network(network), p_comm(network->communicator())
00042 {
00043 }
00044
00045
00046
00047
00048 virtual ~ExportMultiTerm33(){}
00049
00050
00051
00052
00053
00054
00055
00056
00057 void writeMultiTermBlock(std::ofstream &fout)
00058 {
00059 int me = p_comm.rank();
00060
00061 if (me == 0) {
00062 fout << "0 / END IMPEDANCE CORRECTION TABLE DATA, BEGIN MULTI-TERMINAL DATA"
00063 << std::endl;
00064 }
00065
00066 }
00067
00068 private:
00069 boost::shared_ptr<_network> p_network;
00070
00071 gridpack::parallel::Communicator p_comm;
00072 };
00073
00074 }
00075 }
00076
00077 #endif